package cn.lanqiao.book.dao;

import cn.lanqiao.book.pojo.Book;
import cn.lanqiao.book.pojo.ShelfBook;
import cn.lanqiao.book.pojo.chapter;

import java.util.List;

public interface IBookShelfDao {
    //根据用户名获取用户id
    int getUserId(String username);
    //根据 用户id 和 书架类型 获得 书架id
    int getShelfId(int user_id,int bookshelf_type);
    //向bookshelf_details表中插入一条数据
    Boolean add(int shelf_id,int book_id);
    Boolean delete(int shelf_id,int book_id);
    Boolean add(int shelf_id,int book_id,int chapter_id);
    List<ShelfBook> getBookList(int shelfId);

}
